home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / DriverSynchronization.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.9 KB  |  186 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        DriverSynchronization.a
  3. ;
  4. ;    Contains:    Driver Synchronization Interfaces.
  5. ;
  6. ;    Version:    Technology:    MacOS
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__DRIVERSYNCHRONIZATION__') = 'UNDEFINED' THEN
  18. __DRIVERSYNCHRONIZATION__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  24.     include 'MacTypes.a'
  25.     ENDIF
  26.  
  27. ;
  28. ; extern void SynchronizeIO(void )
  29. ;
  30.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  31.         _SynchronizeIO:    OPWORD    $4E71
  32.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  33.         IMPORT_CFM_FUNCTION SynchronizeIO
  34.     ENDIF
  35.  
  36. ;
  37. ; extern Boolean CompareAndSwap(UInt32 oldVvalue, UInt32 newValue, UInt32 *OldValueAdr)
  38. ;
  39.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  40.         IMPORT_CFM_FUNCTION CompareAndSwap
  41.     ENDIF
  42.  
  43. ;
  44. ; extern Boolean TestAndClear(UInt32 bit, UInt8 *startAddress)
  45. ;
  46.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  47.         IMPORT_CFM_FUNCTION TestAndClear
  48.     ENDIF
  49.  
  50. ;
  51. ; extern Boolean TestAndSet(UInt32 bit, UInt8 *startAddress)
  52. ;
  53.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  54.         IMPORT_CFM_FUNCTION TestAndSet
  55.     ENDIF
  56.  
  57. ;
  58. ; extern SInt8 IncrementAtomic8(SInt8 *value)
  59. ;
  60.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  61.         IMPORT_CFM_FUNCTION IncrementAtomic8
  62.     ENDIF
  63.  
  64. ;
  65. ; extern SInt8 DecrementAtomic8(SInt8 *value)
  66. ;
  67.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  68.         IMPORT_CFM_FUNCTION DecrementAtomic8
  69.     ENDIF
  70.  
  71. ;
  72. ; extern SInt8 AddAtomic8(SInt32 amount, SInt8 *value)
  73. ;
  74.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  75.         IMPORT_CFM_FUNCTION AddAtomic8
  76.     ENDIF
  77.  
  78. ;
  79. ; extern UInt8 BitAndAtomic8(UInt32 mask, UInt8 *value)
  80. ;
  81.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  82.         IMPORT_CFM_FUNCTION BitAndAtomic8
  83.     ENDIF
  84.  
  85. ;
  86. ; extern UInt8 BitOrAtomic8(UInt32 mask, UInt8 *value)
  87. ;
  88.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  89.         IMPORT_CFM_FUNCTION BitOrAtomic8
  90.     ENDIF
  91.  
  92. ;
  93. ; extern UInt8 BitXorAtomic8(UInt32 mask, UInt8 *value)
  94. ;
  95.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  96.         IMPORT_CFM_FUNCTION BitXorAtomic8
  97.     ENDIF
  98.  
  99. ;
  100. ; extern SInt16 IncrementAtomic16(SInt16 *value)
  101. ;
  102.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  103.         IMPORT_CFM_FUNCTION IncrementAtomic16
  104.     ENDIF
  105.  
  106. ;
  107. ; extern SInt16 DecrementAtomic16(SInt16 *value)
  108. ;
  109.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  110.         IMPORT_CFM_FUNCTION DecrementAtomic16
  111.     ENDIF
  112.  
  113. ;
  114. ; extern SInt16 AddAtomic16(SInt32 amount, SInt16 *value)
  115. ;
  116.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  117.         IMPORT_CFM_FUNCTION AddAtomic16
  118.     ENDIF
  119.  
  120. ;
  121. ; extern UInt16 BitAndAtomic16(UInt32 mask, UInt16 *value)
  122. ;
  123.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  124.         IMPORT_CFM_FUNCTION BitAndAtomic16
  125.     ENDIF
  126.  
  127. ;
  128. ; extern UInt16 BitOrAtomic16(UInt32 mask, UInt16 *value)
  129. ;
  130.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  131.         IMPORT_CFM_FUNCTION BitOrAtomic16
  132.     ENDIF
  133.  
  134. ;
  135. ; extern UInt16 BitXorAtomic16(UInt32 mask, UInt16 *value)
  136. ;
  137.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  138.         IMPORT_CFM_FUNCTION BitXorAtomic16
  139.     ENDIF
  140.  
  141. ;
  142. ; extern SInt32 IncrementAtomic(SInt32 *value)
  143. ;
  144.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  145.         IMPORT_CFM_FUNCTION IncrementAtomic
  146.     ENDIF
  147.  
  148. ;
  149. ; extern SInt32 DecrementAtomic(SInt32 *value)
  150. ;
  151.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  152.         IMPORT_CFM_FUNCTION DecrementAtomic
  153.     ENDIF
  154.  
  155. ;
  156. ; extern SInt32 AddAtomic(SInt32 amount, SInt32 *value)
  157. ;
  158.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  159.         IMPORT_CFM_FUNCTION AddAtomic
  160.     ENDIF
  161.  
  162. ;
  163. ; extern UInt32 BitAndAtomic(UInt32 mask, UInt32 *value)
  164. ;
  165.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  166.         IMPORT_CFM_FUNCTION BitAndAtomic
  167.     ENDIF
  168.  
  169. ;
  170. ; extern UInt32 BitOrAtomic(UInt32 mask, UInt32 *value)
  171. ;
  172.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  173.         IMPORT_CFM_FUNCTION BitOrAtomic
  174.     ENDIF
  175.  
  176. ;
  177. ; extern UInt32 BitXorAtomic(UInt32 mask, UInt32 *value)
  178. ;
  179.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  180.         IMPORT_CFM_FUNCTION BitXorAtomic
  181.     ENDIF
  182.  
  183.  
  184.     ENDIF ; __DRIVERSYNCHRONIZATION__ 
  185.  
  186.